Optimal. Leaf size=135 \[ \frac {(A b-a B) (b d-a e) (a+b x)^3 \sqrt {a^2+2 a b x+b^2 x^2}}{4 b^3}+\frac {(b B d+A b e-2 a B e) (a+b x)^4 \sqrt {a^2+2 a b x+b^2 x^2}}{5 b^3}+\frac {B e (a+b x)^5 \sqrt {a^2+2 a b x+b^2 x^2}}{6 b^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.09, antiderivative size = 135, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.065, Rules used = {784, 78}
\begin {gather*} \frac {\sqrt {a^2+2 a b x+b^2 x^2} (a+b x)^4 (-2 a B e+A b e+b B d)}{5 b^3}+\frac {\sqrt {a^2+2 a b x+b^2 x^2} (a+b x)^3 (A b-a B) (b d-a e)}{4 b^3}+\frac {B e \sqrt {a^2+2 a b x+b^2 x^2} (a+b x)^5}{6 b^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 78
Rule 784
Rubi steps
\begin {align*} \int (A+B x) (d+e x) \left (a^2+2 a b x+b^2 x^2\right )^{3/2} \, dx &=\frac {\sqrt {a^2+2 a b x+b^2 x^2} \int \left (a b+b^2 x\right )^3 (A+B x) (d+e x) \, dx}{b^2 \left (a b+b^2 x\right )}\\ &=\frac {\sqrt {a^2+2 a b x+b^2 x^2} \int \left (\frac {(A b-a B) (b d-a e) \left (a b+b^2 x\right )^3}{b^2}+\frac {(b B d+A b e-2 a B e) \left (a b+b^2 x\right )^4}{b^3}+\frac {B e \left (a b+b^2 x\right )^5}{b^4}\right ) \, dx}{b^2 \left (a b+b^2 x\right )}\\ &=\frac {(A b-a B) (b d-a e) (a+b x)^3 \sqrt {a^2+2 a b x+b^2 x^2}}{4 b^3}+\frac {(b B d+A b e-2 a B e) (a+b x)^4 \sqrt {a^2+2 a b x+b^2 x^2}}{5 b^3}+\frac {B e (a+b x)^5 \sqrt {a^2+2 a b x+b^2 x^2}}{6 b^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 144, normalized size = 1.07 \begin {gather*} \frac {x \sqrt {(a+b x)^2} \left (10 a^3 (3 A (2 d+e x)+B x (3 d+2 e x))+3 a b^2 x^2 (5 A (4 d+3 e x)+3 B x (5 d+4 e x))+15 a^2 b x (B x (4 d+3 e x)+A (6 d+4 e x))+b^3 x^3 (3 A (5 d+4 e x)+2 B x (6 d+5 e x))\right )}{60 (a+b x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.84, size = 180, normalized size = 1.33
method | result | size |
gosper | \(\frac {x \left (10 b^{3} B e \,x^{5}+12 x^{4} A \,b^{3} e +36 x^{4} b^{2} B a e +12 x^{4} B \,b^{3} d +45 x^{3} A a \,b^{2} e +15 x^{3} A d \,b^{3}+45 x^{3} B e \,a^{2} b +45 x^{3} B a \,b^{2} d +60 x^{2} A \,a^{2} b e +60 x^{2} A d a \,b^{2}+20 x^{2} B e \,a^{3}+60 x^{2} B \,a^{2} b d +30 x A \,a^{3} e +90 x A d \,a^{2} b +30 x B \,a^{3} d +60 A d \,a^{3}\right ) \left (\left (b x +a \right )^{2}\right )^{\frac {3}{2}}}{60 \left (b x +a \right )^{3}}\) | \(180\) |
default | \(\frac {x \left (10 b^{3} B e \,x^{5}+12 x^{4} A \,b^{3} e +36 x^{4} b^{2} B a e +12 x^{4} B \,b^{3} d +45 x^{3} A a \,b^{2} e +15 x^{3} A d \,b^{3}+45 x^{3} B e \,a^{2} b +45 x^{3} B a \,b^{2} d +60 x^{2} A \,a^{2} b e +60 x^{2} A d a \,b^{2}+20 x^{2} B e \,a^{3}+60 x^{2} B \,a^{2} b d +30 x A \,a^{3} e +90 x A d \,a^{2} b +30 x B \,a^{3} d +60 A d \,a^{3}\right ) \left (\left (b x +a \right )^{2}\right )^{\frac {3}{2}}}{60 \left (b x +a \right )^{3}}\) | \(180\) |
risch | \(\frac {\sqrt {\left (b x +a \right )^{2}}\, b^{3} B e \,x^{6}}{6 b x +6 a}+\frac {\sqrt {\left (b x +a \right )^{2}}\, \left (b^{3} \left (A e +B d \right )+3 b^{2} B a e \right ) x^{5}}{5 b x +5 a}+\frac {\sqrt {\left (b x +a \right )^{2}}\, \left (A d \,b^{3}+3 \left (A e +B d \right ) a \,b^{2}+3 B e \,a^{2} b \right ) x^{4}}{4 b x +4 a}+\frac {\sqrt {\left (b x +a \right )^{2}}\, \left (3 A d a \,b^{2}+3 \left (A e +B d \right ) a^{2} b +B e \,a^{3}\right ) x^{3}}{3 b x +3 a}+\frac {\sqrt {\left (b x +a \right )^{2}}\, \left (3 A d \,a^{2} b +\left (A e +B d \right ) a^{3}\right ) x^{2}}{2 b x +2 a}+\frac {\sqrt {\left (b x +a \right )^{2}}\, a^{3} A d x}{b x +a}\) | \(231\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 261 vs.
\(2 (100) = 200\).
time = 0.27, size = 261, normalized size = 1.93 \begin {gather*} \frac {1}{4} \, {\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {3}{2}} A d x + \frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {3}{2}} B a^{2} x e}{4 \, b^{2}} + \frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {3}{2}} A a d}{4 \, b} - \frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {3}{2}} {\left (B d + A e\right )} a x}{4 \, b} + \frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {3}{2}} B a^{3} e}{4 \, b^{3}} + \frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {5}{2}} B x e}{6 \, b^{2}} - \frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {3}{2}} {\left (B d + A e\right )} a^{2}}{4 \, b^{2}} - \frac {7 \, {\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {5}{2}} B a e}{30 \, b^{3}} + \frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {5}{2}} {\left (B d + A e\right )}}{5 \, b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.01, size = 151, normalized size = 1.12 \begin {gather*} \frac {1}{5} \, B b^{3} d x^{5} + A a^{3} d x + \frac {1}{4} \, {\left (3 \, B a b^{2} + A b^{3}\right )} d x^{4} + {\left (B a^{2} b + A a b^{2}\right )} d x^{3} + \frac {1}{2} \, {\left (B a^{3} + 3 \, A a^{2} b\right )} d x^{2} + \frac {1}{60} \, {\left (10 \, B b^{3} x^{6} + 30 \, A a^{3} x^{2} + 12 \, {\left (3 \, B a b^{2} + A b^{3}\right )} x^{5} + 45 \, {\left (B a^{2} b + A a b^{2}\right )} x^{4} + 20 \, {\left (B a^{3} + 3 \, A a^{2} b\right )} x^{3}\right )} e \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (A + B x\right ) \left (d + e x\right ) \left (\left (a + b x\right )^{2}\right )^{\frac {3}{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 267 vs.
\(2 (100) = 200\).
time = 0.91, size = 267, normalized size = 1.98 \begin {gather*} \frac {1}{6} \, B b^{3} x^{6} e \mathrm {sgn}\left (b x + a\right ) + \frac {1}{5} \, B b^{3} d x^{5} \mathrm {sgn}\left (b x + a\right ) + \frac {3}{5} \, B a b^{2} x^{5} e \mathrm {sgn}\left (b x + a\right ) + \frac {1}{5} \, A b^{3} x^{5} e \mathrm {sgn}\left (b x + a\right ) + \frac {3}{4} \, B a b^{2} d x^{4} \mathrm {sgn}\left (b x + a\right ) + \frac {1}{4} \, A b^{3} d x^{4} \mathrm {sgn}\left (b x + a\right ) + \frac {3}{4} \, B a^{2} b x^{4} e \mathrm {sgn}\left (b x + a\right ) + \frac {3}{4} \, A a b^{2} x^{4} e \mathrm {sgn}\left (b x + a\right ) + B a^{2} b d x^{3} \mathrm {sgn}\left (b x + a\right ) + A a b^{2} d x^{3} \mathrm {sgn}\left (b x + a\right ) + \frac {1}{3} \, B a^{3} x^{3} e \mathrm {sgn}\left (b x + a\right ) + A a^{2} b x^{3} e \mathrm {sgn}\left (b x + a\right ) + \frac {1}{2} \, B a^{3} d x^{2} \mathrm {sgn}\left (b x + a\right ) + \frac {3}{2} \, A a^{2} b d x^{2} \mathrm {sgn}\left (b x + a\right ) + \frac {1}{2} \, A a^{3} x^{2} e \mathrm {sgn}\left (b x + a\right ) + A a^{3} d x \mathrm {sgn}\left (b x + a\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \left (A+B\,x\right )\,\left (d+e\,x\right )\,{\left (a^2+2\,a\,b\,x+b^2\,x^2\right )}^{3/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________